package org.xp.judgeplatform.converter;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.xp.judgeplatform.pojo.entity.LoginDevices;
import org.xp.judgeplatform.pojo.vo.LoginDevicesVO.LoginDevicesVO;

import java.util.List;

@Mapper(componentModel = "spring")
public interface LoginDevicesConverter {

    @Mapping(target = "isCurrent", ignore = true)
    LoginDevicesVO toVO(LoginDevices loginDevices);

    List<LoginDevicesVO> toVOList(List<LoginDevices> loginDevicesList);
}
